package com.happycolor.qeuip.model;




public class Teacherinfo  {
	private static final long serialVersionUID = 1L;

/*[CONSTRUCTOR MARKER BEGIN]*/
	public Teacherinfo () {
		super();
	}

	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.String tname;
	private java.lang.String tmobile;
	private java.lang.String thometel;
	private java.lang.String tofficetel;
	private java.lang.Integer ttile;
	private java.lang.Integer tcategory;
	private java.lang.String taddress;
	private java.lang.Integer lmuser;
	private java.util.Date lmtime;
	private java.lang.Integer dstatus;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="sequence"
     *  column="ID"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: TNAME
	 */
	public java.lang.String getTname () {
		return tname;
	}

	/**
	 * Set the value related to the column: TNAME
	 * @param tname the TNAME value
	 */
	public void setTname (java.lang.String tname) {
		this.tname = tname;
	}



	/**
	 * Return the value associated with the column: TMOBILE
	 */
	public java.lang.String getTmobile () {
		return tmobile;
	}

	/**
	 * Set the value related to the column: TMOBILE
	 * @param tmobile the TMOBILE value
	 */
	public void setTmobile (java.lang.String tmobile) {
		this.tmobile = tmobile;
	}



	/**
	 * Return the value associated with the column: THOMETEL
	 */
	public java.lang.String getThometel () {
		return thometel;
	}

	/**
	 * Set the value related to the column: THOMETEL
	 * @param thometel the THOMETEL value
	 */
	public void setThometel (java.lang.String thometel) {
		this.thometel = thometel;
	}



	/**
	 * Return the value associated with the column: TOFFICETEL
	 */
	public java.lang.String getTofficetel () {
		return tofficetel;
	}

	/**
	 * Set the value related to the column: TOFFICETEL
	 * @param tofficetel the TOFFICETEL value
	 */
	public void setTofficetel (java.lang.String tofficetel) {
		this.tofficetel = tofficetel;
	}



	/**
	 * Return the value associated with the column: TTILE
	 */
	public java.lang.Integer getTtile () {
		return ttile;
	}

	/**
	 * Set the value related to the column: TTILE
	 * @param ttile the TTILE value
	 */
	public void setTtile (java.lang.Integer ttile) {
		this.ttile = ttile;
	}



	/**
	 * Return the value associated with the column: TCATEGORY
	 */
	public java.lang.Integer getTcategory () {
		return tcategory;
	}

	/**
	 * Set the value related to the column: TCATEGORY
	 * @param tcategory the TCATEGORY value
	 */
	public void setTcategory (java.lang.Integer tcategory) {
		this.tcategory = tcategory;
	}



	/**
	 * Return the value associated with the column: TADDRESS
	 */
	public java.lang.String getTaddress () {
		return taddress;
	}

	/**
	 * Set the value related to the column: TADDRESS
	 * @param taddress the TADDRESS value
	 */
	public void setTaddress (java.lang.String taddress) {
		this.taddress = taddress;
	}



	/**
	 * Return the value associated with the column: LMUSER
	 */
	public java.lang.Integer getLmuser () {
		return lmuser;
	}

	/**
	 * Set the value related to the column: LMUSER
	 * @param lmuser the LMUSER value
	 */
	public void setLmuser (java.lang.Integer lmuser) {
		this.lmuser = lmuser;
	}



	/**
	 * Return the value associated with the column: LMTIME
	 */
	public java.util.Date getLmtime () {
		return lmtime;
	}

	/**
	 * Set the value related to the column: LMTIME
	 * @param lmtime the LMTIME value
	 */
	public void setLmtime (java.util.Date lmtime) {
		this.lmtime = lmtime;
	}



	/**
	 * Return the value associated with the column: DSTATUS
	 */
	public java.lang.Integer getDstatus () {
		return dstatus;
	}

	/**
	 * Set the value related to the column: DSTATUS
	 * @param dstatus the DSTATUS value
	 */
	public void setDstatus (java.lang.Integer dstatus) {
		this.dstatus = dstatus;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.happycolor.qeuip.model.Teacherinfo)) return false;
		else {
			com.happycolor.qeuip.model.Teacherinfo teacherinfo = (com.happycolor.qeuip.model.Teacherinfo) obj;
			if (null == this.getId() || null == teacherinfo.getId()) return false;
			else return (this.getId().equals(teacherinfo.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}
}